package com.lau.controller;

import com.lau.common.lang.Result;
import com.lau.service.impl.SysLoginService;
import com.lau.vo.LoginBodyVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author:Lau
 * @create: 2023-11-22 16:53
 * @Description: 登录
 */

@RestController
public class SysLoginController{

    @Autowired
    SysLoginService loginService;

    @ResponseBody
    @PostMapping ("/login")
    public Result login(@RequestBody LoginBodyVo loginBodyVo) {
        return loginService.login(loginBodyVo);
    }

}
